﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 基于WPF的电缆采样数据分析系统.Models.Dbs
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table("User")]
    public class User
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [Key]
        public int Uid { get; set; }

        /// <summary>
        /// 等级 1为管理员 2为普通用户
        /// </summary>
        public int GradeId { get; set; }

        /// <summary>
        /// 别名
        /// </summary>
        public string Alias { get; set; }

        /// <summary>
        /// 账户
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 是否启用 1表示启用 0表示禁用
        /// </summary>
        public int IsEnable { get; set; } = 1;
    }
}
